package com.zhoujing.cinema.dao;

import com.zhoujing.cinema.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author:helloboy
 * Date:2019-12-15 21:12
 * Description:<描述>
 */
@Repository
public interface UserDao {
     public User selectUserByName(String username);
     public void insertUser(User user);
     public User selectUserById(Integer userId);
     public void updateUserInfo(User user);
     public List<User> selectAllUser();
     public List<User> searchUser(@Param("username") String username);
     public void changeRole(User user);
     public List<Type> selectAllType();
     public void insertType(Type type);
     public void updateType(Type type);
     public List<Country> selectAllArea();
     public void insertArea(Country country);
     public void updateArea(Country country);
     public List<Year> selectAllYear();
     public void insertYear(Year year);
     public void updateYear(Year year);
     public List<Movie> selectAllMovies();
     public List<Banner> selectAllBanner();
     public void addBanner(Banner banner);
     public void updateBanner(Banner banner);
     public void updateBanner1(Banner banner);
     public void changeRole1(Banner banner);
 }
